﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true"
    CodeFile="item_edit.aspx.cs" Inherits="admin_item_edit"  ValidateRequest="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        KE.show({ id: '<%=tbContent.ClientID %>',
            imageUploadJson: '../../asp.net/upload_json.ashx',
            fileManagerJson: '../../asp.net/file_manager_json.ashx',
            allowFileManager: true
        });     
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="upEdit" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"
        RenderMode="Inline">
        <ContentTemplate>
            <table class="tblist" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <th width="100px" align="right">
                        名称：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="tbTitle" runat="server" Width="200px" /><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ErrorMessage="名称不能为空" ControlToValidate="tbTitle"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        内容：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="tbContent" runat="server" TextMode="MultiLine" Width="700px" Height="400px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnOk" runat="server" Text="提交" onclick="btnOk_Click" OnClientClick="dclick()" />
                        <asp:Button ID="btnOk1" runat="server" Text="" Width="0" Height="0"  BorderWidth="0"
                            onclick="btnOk1_Click"  />
                        <script type="text/javascript">
                            function dclick() {
                                var id = '<%=btnOk1.ClientID %>';
                                $('#' + id).click();
                            }
                        </script>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
